A pythonic way to build a repository manager