'Open the file pointed to by name for direct read/write. Note that
this will commit the file if it is dirtied and remove it from the parse
cache. You must finish with this file before accessing the parsed
version of it again, or bad things will happen.'

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

    return open(self.get_file_path_for_processing(name, (mode not in {u'r', u'rb'})), mode)
