Add python3-compat boiler to all core files