python3 adaptation for livestatus.py library