BUG: Fix ImportError on Python 3.4b2 and 3.4b3

See http://bugs.python.org/issue20166
Merge pull request #6241 from cgohlke/patch-1

BUG: Fix ImportError on Python 3.4b2 and 3.4b3