Python NameError ввод

Try using raw_input instead.
ayaan