fix Python 3 compatibility and prep for v0.7.6