Fix deprecation warnings
Merge pull request #4 from dieterdemeyer/master

Fix deprecation warnings