update python learn2 format