add managepy method