Minor PEP cleanup
Issue #23: TCP/UDP protocol preference loaded from settings file