The error happens when executing the following lines,
output[counter] = h['url']
name = '%(name)s%(#)03u' % {'title': user_input, '#': counter}
urllib.urlretrieve(output[counter], name)
counter += 1
>>>> File "/base/python_runtime/python_dist/lib/python2.5/urllib.py", line 225, in retrieve
>>> tfp = open(filename, 'wb')
>>> IOError: invalid mode: wb
Ive got a few errors beofre due to google's app engine not supporting any version above 2.5, not sure if that is what is causing it.
Thank you for your help!
Found what I was looking for here, I apologize for not finding it before posting this question.