changed the val.has_key('something') calls to Python 3 compatible 'something' in val
take away the str conversion at pickle load, since hopefully it's not necessary in Python 3 any more