Added value validation on Python side.