Python: prep for abi3 work
This MR updates Python code to use abi3
-compatible APIs where possible. Note that there are a few WIP commits that contain comments that need decisions or other API updates to handle.
TODO:
-
Test to see how badly this breaks Python2 -
Run test suite (compiles locally at least)
Cc: @banesullivan
Edited by Ben Boeckel