In mongodb_consistent_backup/Upload/S3/S3.py, the S3 class raises a string exception in its __init__ method which is currently on line 50. I presume you want this to be:
raise OperationError("Invalid S3 security key or region detected!")
rather than just:
raise "Invalid S3 security key or region detected!"