Fix deprecated method
Merge pull request #22 from pyemkey/feature/fix_deprecated_method

Fix deprecated method