[python] clean up python.Boot a bit