Python port of https://github.com/typesafehub/config