modified spike_train_object.py