remove deprecation warnings for 3.2
Merge pull request #56 from thomasvs/master

remove deprecation warnings for 3.2