Fortunately, there exist solutions to this problem. The Haskell solution is to make your code so damn concise that you don't need to add any structure to it. The Lisp approach is to allow you to program the representation of your code in arbitrary ways.
Both are, I think, superior to the Python solution, which is simply to revert back to the imperative style.