Get all compiles on python3

Don't merge yet, carefully testing!!