Take a config file as input and generate screenshots

def generate_screenshots(self):
        """
        Take a config file as input and generate screenshots
        """
        headers = {'content-type': 'application/json', 'Accept': 'application/json'}
        resp = requests.post(self.api_url, data=json.dumps(self.config), \
                             headers=headers, auth=self.auth)
        resp = self._process_response(resp)
        return resp.json()