Fix deprecation warnings
Merge pull request #3 from mcanevet/fix/deprecated

Fix deprecation warnings