Py3 support

All tests pass on Py2.6, 2.7, 3.2 and 3.3 except for the SFTP tests on Py3. Still a bit of work to do there. All of the demos also work except the SFTP demos.