sip: making adjustments to deal with Python-3