set python env on flatpages admin