swap in PyBrain