fixed minor glitches, changed imports to explicit relative imports, following recommendations of 2 scoops of django