Test with Python 3 as well

Signed-off-by: Michal Čihař <michal@cihar.com>
Fix import on Python 3

Signed-off-by: Michal Čihař <michal@cihar.com>
Python 3 compatibility for presence module

Signed-off-by: Michal Čihař <michal@cihar.com>