fixed testing settings and configs, make more django and python compatible