fixed eror in py