Added __getstate__ and __setstate__ to enable pickling
Merge pull request #15 from robla/pickle

Added __getstate__ and __setstate__ to enable pickling