added Python 3 support

Now supports Python 2.6.0a2 and above as well as OS X 10.9.x