added comments containing python training implementations