python miss code issue