Pickle and Unpickle theano functions

Added a test case to verify if pickle and unpickle a compiled theano function works.
Passed.
I hope those prints are not definitive.  If they are intended to stay, you should convert them into logger calls.