As the other comments have already said it’s not Python. Not sure what you mean with text formatting, do you mean that it’s multiple strings that are concatenated using +? You don’t need the + in Python, you can do
<span style="color:#323232;">some_function(
</span><span style="color:#323232;"> </span><span style="color:#183691;">"part one of really long string"
</span><span style="color:#323232;"> </span><span style="color:#183691;">" part two of really long string"
</span><span style="color:#323232;">)
</span>
Which is identical to
<span style="color:#323232;">some_function(</span><span style="color:#183691;">"part one of really long string part two of really long string"</span><span style="color:#323232;">)
</span>