improve readability of chapter01.py
improve chapter19.py
improve chapter23.py