String input function in pygwrap.py now working.