Fixes resize bug that exists on py3.4
Merge pull request #3 from Mekire/master

Fixes resize bug that exists on py3.4