Revert "add py_file"

This reverts commit 3277a128bc7f1a39086e328e504977cfe2c5dac8.