Fix for Python reduce's syntax + Ruby blocks