generate_pathensis.py