The buttoned-up and boring, but deeply analyzed, implementation of SigV4...
Use AWS signature version 4 Authentication with the python requests module