python test if string is integer