Make parse.py more "pythonic"

 * Create a separate main() function