* refactor python script * update objects and helpers to follow the latest spec * minimize validators' representation