Don´t leave filehandles open
I just stumbled upon this:
def __write_configuration(self):
path_to_config = os.path.join(self.managedFolder, self.configFile)
f = open(path_to_config, "wb")
pickle.dump(self.distribution, f)