trying to clean up desoto and singlediode. too much of a mess. some pep8 changes