Various coding fixes
Can not test langpack content (fails on Django 1.5 as it is not string)