improving PEP8 compliance

* reduced the number of PEP8-related flaws
* added 1D source distribution tests