Refactoring lxdmconfig.

 * Extract to sudo().
Move sudo to util.py