modify python check