prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Fix S3 issues with botocore 1.3.29
  botocore 1.3.29 breaks s3 in tests
  
  
  </issue>
  <code>
  [start of moto/__init__.py]
  1 from __future__ import unicode_literals
  2 import logging
  3 logging.getLogger('boto').setLevel(logging.CRITICAL)
  4 
  5 __title__ = 'moto'
  6 __version__ = '0.4.22'
  7 
  8 from .autoscaling import mock_autoscaling  # flake8: noqa
  9 from .awslambda import mock_lambda  # flake8: noqa
  10 from .cloudformation import mock_cloudformation  # flake8: noqa
  11 from .cloudwatch import mock_cloudwatch  # flake8: noqa
  12 from .datapipeline import mock_datapipeline  # flake8: noqa
  13 from .dynamodb import mock_dynamodb  # flake8: noqa
  14 from .dynamodb2 import mock_dynamodb2  # flake8: noqa
  15 from .ec2 import mock_ec2  # flake8: noqa
  16 from .ecs import mock_ecs  # flake8: noqa
  17 from .elb import mock_elb  # flake8: noqa
  18 from .emr import mock_emr  # flake8: noqa
  19 from .glacier import mock_glacier  # flake8: noqa
  20 from .iam import mock_iam  # flake8: noqa
  21 from .kinesis import mock_kinesis  # flake8: noqa
  22 from .kms import mock_kms  # flake8: noqa
  23 from .rds import mock_rds  # flake8: noqa
  24 from .rds2 import mock_rds2  # flake8: noqa
  25 from .redshift import mock_redshift  # flake8: noqa
  26 from .s3 import mock_s3  # flake8: noqa
  27 from .s3bucket_path import mock_s3bucket_path  # flake8: noqa
  28 from .ses import mock_ses  # flake8: noqa
  29 from .sns import mock_sns  # flake8: noqa
  30 from .sqs import mock_sqs  # flake8: noqa
  31 from .sts import mock_sts  # flake8: noqa
  32 from .route53 import mock_route53  # flake8: noqa
  33 from .swf import mock_swf  # flake8: noqa
  34
  [end of moto/__init__.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/moto/__init__.py b/moto/__init__.py
  --- a/moto/__init__.py
  +++ b/moto/__init__.py
  @@ -31,3 +31,13 @@
   from .sts import mock_sts  # flake8: noqa
   from .route53 import mock_route53  # flake8: noqa
   from .swf import mock_swf  # flake8: noqa
  +
  +
  +try:
  +    # Need to monkey-patch botocore requests back to underlying urllib3 classes
  +    from botocore.awsrequest import HTTPSConnectionPool, HTTPConnectionPool, HTTPConnection, VerifiedHTTPSConnection
  +except ImportError:
  +    pass
  +else:
  +    HTTPSConnectionPool.ConnectionCls = VerifiedHTTPSConnection
  +    HTTPConnectionPool.ConnectionCls = HTTPConnection
  
verification_info: {"golden_diff": "diff --git a/moto/__init__.py b/moto/__init__.py\n--- a/moto/__init__.py\n+++ b/moto/__init__.py\n@@ -31,3 +31,13 @@\n from .sts import mock_sts  # flake8: noqa\n from .route53 import mock_route53  # flake8: noqa\n from .swf import mock_swf  # flake8: noqa\n+\n+\n+try:\n+    # Need to monkey-patch botocore requests back to underlying urllib3 classes\n+    from botocore.awsrequest import HTTPSConnectionPool, HTTPConnectionPool, HTTPConnection, VerifiedHTTPSConnection\n+except ImportError:\n+    pass\n+else:\n+    HTTPSConnectionPool.ConnectionCls = VerifiedHTTPSConnection\n+    HTTPConnectionPool.ConnectionCls = HTTPConnection\n", "issue": "Fix S3 issues with botocore 1.3.29\nbotocore 1.3.29 breaks s3 in tests\n\n", "before_files": [{"content": "from __future__ import unicode_literals\nimport logging\nlogging.getLogger('boto').setLevel(logging.CRITICAL)\n\n__title__ = 'moto'\n__version__ = '0.4.22'\n\nfrom .autoscaling import mock_autoscaling  # flake8: noqa\nfrom .awslambda import mock_lambda  # flake8: noqa\nfrom .cloudformation import mock_cloudformation  # flake8: noqa\nfrom .cloudwatch import mock_cloudwatch  # flake8: noqa\nfrom .datapipeline import mock_datapipeline  # flake8: noqa\nfrom .dynamodb import mock_dynamodb  # flake8: noqa\nfrom .dynamodb2 import mock_dynamodb2  # flake8: noqa\nfrom .ec2 import mock_ec2  # flake8: noqa\nfrom .ecs import mock_ecs  # flake8: noqa\nfrom .elb import mock_elb  # flake8: noqa\nfrom .emr import mock_emr  # flake8: noqa\nfrom .glacier import mock_glacier  # flake8: noqa\nfrom .iam import mock_iam  # flake8: noqa\nfrom .kinesis import mock_kinesis  # flake8: noqa\nfrom .kms import mock_kms  # flake8: noqa\nfrom .rds import mock_rds  # flake8: noqa\nfrom .rds2 import mock_rds2  # flake8: noqa\nfrom .redshift import mock_redshift  # flake8: noqa\nfrom .s3 import mock_s3  # flake8: noqa\nfrom .s3bucket_path import mock_s3bucket_path  # flake8: noqa\nfrom .ses import mock_ses  # flake8: noqa\nfrom .sns import mock_sns  # flake8: noqa\nfrom .sqs import mock_sqs  # flake8: noqa\nfrom .sts import mock_sts  # flake8: noqa\nfrom .route53 import mock_route53  # flake8: noqa\nfrom .swf import mock_swf  # flake8: noqa\n", "path": "moto/__init__.py"}]}