add Python2 compatibility for input()