Swap key and text parameters for encode and decode message.
Added aes_test.py for test coverage