lib/py: fixed unit test imports