Replace @while loops with @for loops

This makes the code shorter and easier to read. In addition, it makes it
compile successfully with pyScss, which doesn't support @while loops.
Merge pull request #60 from jodal/remove-while-loops

Replace @while loops with @for loops