Python generic filesystem storage abstraction (Extracted from django)