Make localdevstorage compatible with Python 3