Fixed deprecated imports -- support Theano variables