dialer.py rework according to PEP8.