Used traceback module to set name of theano.function to file_name:line_number.