def main(client, user_id):
  # Initialize appropriate service.
  user_service = client.GetService('UserService', version='v201505')

  # Create query.
  values = [{
      'key': 'userId',
      'value': {
          'xsi_type': 'NumberValue',
          'value': user_id
      }
  }]
  query = 'WHERE id = :userId'

  # Create a filter statement.
  statement = dfp.FilterStatement(query, values)

  # Get users by statement.
  response = user_service.getUsersByStatement(statement.ToStatement())

  if response in 'results':
    users = response['results']
    for user in users:
      user['name'] += ' Sr.'

    # Update users on server.
    users = user_service.updateUsers(users)
    for user in users:
      print ('User with id \'%s\' and name \'%s\' was updated.'
             % (user['id'], user['name']))
  else:
    print 'No users found to update.'
dataset/ETHPy150Open googleads/googleads-python-lib/examples/dfp/v201505/user_service/update_users.py/main/swapped operands of `in`