Revert "use __main__ module as entry point"

This reverts commit bb3fed39278fe90f47f1185880c699838e5250bc.

It's not supported by Python 2.6