python model , Based on the 2.7