persist() is using the more pythonic form of f.open or open(), where the file handle is opened as 'var', core logic is similar, and closing the handle is done automatically after leaving scope

get() uses dict.get to get values from a dict, which returns nothing if its null, removing the need for the try/catch (more pythonic)

Hopefully makes more sense