flip __main__ ordering
Revert "flip __main__ ordering"

This reverts commit c15b77aca9b97a41c7d3f6ce48619b1a1b8d3b82.