PEP 8 improvements

Hi, I'll use the ldcm.py in a project, so I did some fixes on the code to adjust some lines to the PEP 8 standards.