cleaned __main__ execution