String Input Method In Python Class