added urllib.quote_plus() to get rid of whitespace in URL redirect