Compatibility shims for Python 3.3.4

These are the minor changes I made to work with Python 3.3.4 that *should* be totally backward compatible with 2.7. And sorry about the trailing whitespace changes -- my emacs does that automatically. I can rebase them out if you'd like. Thanks!