remove all main level declarations (if __name__ == __main__)