Obtenha o nome do módulo atual python
print(__file__)
Strange Shrew
print(__file__)
def main():
print('Running test...')
...
if __name__ == '__main__':
main()