check if input is not a number python