PEP8 fixes on the line module
PEP8 fixes on lines
Added back imports in lines for backward compatibility