Introduce utils.py
Implement delete_prev_chars() and cleanup