fixed module import and removed django 1.3.1 dependency