import stetement inside scope. because OrderedSet can't import at Django 1.6