python3 compat for pickle tests

Closes #93

Not sure if this is the best approach, maybe doing an isinstance with the
string types would be better?
Merge pull request #95 from esc/bugfix/pickle

python3 compat for pickle tests