Pickling framework for the class 'Train'