Fix Python 3

Also add smoke integration test that parsing doesn't explode.