schlib/rules: style fixes
Created by: diegoherranz
Most of them as reported by flake8. Still a few things to be fixed, but this was the most obvious/trivial stuff.
Let me know if you disagree with any change and I can fix or remove it.
Thanks!
Edited by Joel Guittet