'Retrieves the specified file from storage, using the optional mixin
class to customize what features are available on the File returned.'

def open(self, name, mode='rb', mixin=None):

    file = self._open(name, mode)
    if mixin:
        file.__class__ = type(mixin.__name__, (mixin, file.__class__), {})
    return file
