optimize the python load