python script for solving simple substitution ciphers