This is another place where I think it's more readable to return here and return None after the loop, which allows you to get rid of the response variable entirely.