python memory-management http://deeplearning.net/software/theano/tutorial/python-memory-management.html