renamed validate_letter to assert_valid_letter and rewrote it in
accordance with PEP8 and Python style guidelines