learning of taocode implemented by python