Consolidate Element and SimpleElement classes.
Simplify typechecking and casting.
Add tox.ini to test multiple versions.

Includes Python 2.6, 2.7, 3.2, 3.3, and pypy.
Add Travis-CI config