new polyline function added
more PEP8, Pylint fixes