Fixed deprecation warnings
Merge pull request #34 from obduk/fix_deprications

Fixed deprecation warnings