MNT: Rearranged imports to get around sip v1/v2 issues