Fix Graph pickling in python 2

This fixes issue #190