Add some Python 3.4 support

See http://python.readthedocs.org/en/latest/library/ast.html.