Analytic integrability for strings on η and λ deformed backgrounds