def prettyprint(ip, comment): return ip.ljust(20) + ('# ' + comment if comment != '' else '')