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)
Make sure 'Location' header returned in response actually points to
dataset/ETHPy150Open jcjohnson/simple-amt/simpleamt.py/get_mturk_connection--crossover with--dataset/ETHPy150Open jeffknupp/sandman/tests/test_sandman.py/TestSandmanBasicVerbs.test_posted_location