Ported twisted/persistent/sob.py to have python3 syntax and imports