Remove methods deprecated in Python 3.4. Fixes #3.