use six.moves.input rather than try/except

plus comment formatting