Improve cross python compatibility issues with little imports

Very little thing, but it helps to not breaks things in older version of `Django (<=1.3)`