Refactor rot13.py to reduce lines and improve readability
Encapsulate rot13 functionality into rot13() and _rot13_table() and add assert tests