small code refactoring
fix small problem shown with pyflakes.
Patch by Alistair Muldal, make theano-nose work on executable *.py files.