fix sitetreeload management command for py27 and django 1.7
fix sitetreeload management command for py3 and django 1.7