How about global __main__ as a boolean? __name__ == '__main__' as a mark of entrypoint module is coherent and logical, but awkward to type and requires explicit explaination for newcomers even with prior background in other langauges.