pycairo: Update to 1.10.0 and support both python 2 and python 3

Close #1802.