python check if string convert to int