Add the compatiblity for py2.6
Sample usage on boto3