changed config format to python dict