Mapping to instances
Made a salt api module
PEP fix