def get_mturk_connection(sandbox=True, aws_access_key=None,
                         aws_secret_key=None):
  kwargs = {}
  if aws_access_key is not None:
    kwargs['aws_access_key_id'] = aws_access_key
  if aws_secret_key is not None:
    kwargs['aws_secret_access_key'] = aws_secret_key

  if sandbox:
    host = 'mechanicalturk.sandbox.amazonaws.com'
  else:
    host='mechanicalturk.amazonaws.com'
  return MTurkConnection(host=host, **kwargs)
Get a boto mturk connection. This is a thin wrapper over the
dataset/ETHPy150Open jcjohnson/simple-amt/simpleamt.py/get_mturk_connection