Added an 'if __name__=='__main__'' thing: write the tables.

Useful if I just wanna hammer the tables out on the command line.