import sys lament = lambda *args, **kwargs: print(*args, file=sys.stderr, **kwargs) def die(*args, **kwargs): # just for ad-hoc debugging really lament(*args, **kwargs) sys.exit(1) __all__ = [o for o in locals() if type(o) != 'module' and not o.startswith('_')]