Use Python 3 compatible library

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