Pickle error while using lambda function

Please see this thread and let me know if this helps