Moved compatibility code from theano.gof.python25 to theano.compat.