Fix bugs in python files when run
Fix dexy run