fix error in python app