Python: added a tox/pytest unit test