Fix import error in config_from_object