migrate attribute_entity_cluster codebase into attribute_entity_function
cleanup + cosmetics
add check for python failure + cleanup
add bool function attribute