bunch of Python 3 compatibility fixes

Nothing crazy, just some syntactic changes that make Menpo more compatible with Python 3 (without sacrificing anything).