Update _core.py

re-fixed issue #49
Merge pull request #87 from pedrudehuere/master

Update _core.py