Correcting a bug loading python patches