In reality, refs should judge the severity, however in fifa's rules there is absolutely nothing about "severity" of fouls resulting in penalties. There is simply a list of infractions, which when occuring in the penalty area, result in a penalty.
That was 100% penalty, however Malouda's...