How can I convert 128-bit AES encryption key to a string using Python? [migrated]

I am trying to decode my 128-bit AES key to string to store it in database. I have tried using Python built-in decode() with ascii and utf-8 codecs but it is not working.