def FakeOpen(filename, flags, mode=511):
 raise OSError(errno.EPERM, 'Operation not permitted', filename)

def FakeOpen ( filename , flags , mode = 511 ) : raise OSError ( errno . EPERM , 'Operation not permitted' , filename )
fake version of os .