Moved to python3 and xcffib

And small fixes.