making a random filename

Why does a Pythonic list comprehension work in the interpreter
but not when I run hhserver.py? Why?
Merge branch 'master' of github.com:brainwane/secureapi