Input isnt bad at all, just never ever ever ever use input on a networking program. Ever.
Again, i know 0 python, but how could input be frowned upon? That would basically say "i frown upon modularizing code" which would be a terrible thing and lead to terrible python code and the language would die. (done with my dreaming..)