dict comprehensions -> dict((k,v) for ...)
move errant theano code inside safezone