Confusing Python

>>> simplejson.dump({'tags': ['something new']}, sys.stdin)
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.5/site-packages/PIL/__init__.py", line 163, in dump

IOError: [Errno 9] Bad file descriptor