cleaning up python scripts