Python 3.3+ support

Should fix #27. I only tested it on 3.4, but this should also work with at least 3.3.