cleans up import order, global variables, unused variables, command-line arguments