python dynamic settings