Django refactor of openipam foo