Fix deprecation warnings
Merge pull request #2 from ebfe/fix-warnings

Fix deprecation warnings