build url parameters from urllib and not from string manipulation