Python3

Fixes a number of Python 3 incompatiblities (resolves #51 ). This patch tests against py26, py27, py33, and py34. All tests are currently passing on tox. 
That's not quite accurate, It should be imported from __future__. While this will still work in some situations it's not clear and this should be avoided.