Py3k

This PR establishes a single python2/3 compatible codebase. It's been tested against python 2.7.3 and python 3.3.2, and all the tests are passing. Currently the py3k tests are not running on travis-ci.