Call to python file with return parameter

Hi, dev gave me python ‘ReadPDF.py’ 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 ReadPDF.py’ 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, PDFreport.py is in the same directory like your testcas:

*** Settings ***
Library    PDFReport.py

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