remove file hashbang
remove trailing whitespaces and blank lines
change all print statement to logging
remove comments