BUGFIX: infinite loop if more elements than lines
Automatic style corrections courtesy of autopep8
Test: add test for the bug
Automatic style corrections courtesy of autopep8
Automatic style corrections courtesy of autopep8
Test: some more test
Automatic style corrections courtesy of autopep8
Merge pull request #232 from pburdet/BUGFIX_to_many_element_for_lines

Bugfix to many element for lines