def METHOD_NAME(self):
    if not os.path.isfile(self.pid_filepath):
        return 0
    with open(self.pid_filepath) as f:
        try:
            METHOD_NAME = int(f.read().strip())
        except ValueError:
            METHOD_NAME = 0
    return METHOD_NAME