Browsing: Python string manipulation