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?