Minor adjustment: Moved command line block

The command line try/except block to handle incoming command line
arguments was not inside the __main__ loop at the bottom.  This was
causing problems on import when trying to develop the new unicode
support.

Lesson learned! All code that isn't a definition belongs in the if
__name__ is '__main__': block, or it will execute on import.