Add methods to StreamWrapper
to allow better pickling
#339
+7
−0
StreamWrapper
to allow better pickling
#339