set_verbose = False def print_verbose(print_statement): try: if set_verbose: print(print_statement) # noqa except: pass