Implementing Column Permutation Encryption in Python (Challenge)