fix deprecation warnings
Merge pull request #4 from Phil-Friderici/fix_deprecation_warnings

fix deprecation warnings