change some bugs add pyflake
change some bugs add pyflake
change