Call to python file with return parameter

Hi, dev gave me python ‘’ which supposed return status after execution. File has next design:
class PDFreport:
def init(self):

def PDFdata(self):

return status

There is no error in robot file after ‘Library’ declaration, however ‘Keyword definition not found’ error displayed after class name was added to robot file, like PDFdata(), or PDFreport.PDFdata(), or PDFreport().PDFdata(), or PDFreport, or PDFreport() ( … PDFreport().PDFdata() is working from python file). How can i call to this python file from robot file?

Suppose, is in the same directory like your testcas:

*** Settings ***

*** Test Case ***
Run pdfdata
    ${status}    PDFdata