Browsing: user input in Python