refactoring django to work with meta data file