It looks like your comment does exactly that again.
So, although I think you meant well, your comment is indeed callous as I read it.
I got the feeling from the article that it was more like someone sending a drive-by email along the lines of "wow this code is bad, I could have done it completely different, you're not even that good of python" after he submitted some patch that a less toxic person would have thanked him for or something.
Luckily, I am in fact talking to a licensed therapist and they disagree with your assessment provided additional context and that's ok. The internet is a hard place for empathy.