add maps_entity_msg_to_class and ut; fix py.sh and entity_test path issue