def _get_flash_mode(self):
    self._check_camera_open()
    return self._FLASH_MODES_R[self._camera.control.params[mmal.MMAL_PARAMETER_FLASH].value]
def _get_flash_mode(self):
    self._check_camera_open()
    return self._FLASH_MODES_R[self._camera.control.params[mmal.MMAL_PARAMETER_FLASH].value]