'Init the Python API and Environment Manager for the function being
lowered.'

def init_pyapi(self):

    if (self.pyapi is not None):
        return
    self.pyapi = self.context.get_python_api(self.builder)
    self.env_manager = self.context.get_env_manager(self.builder)
    self.env_body = self.env_manager.env_body
    self.envarg = self.env_manager.env_ptr
