allow add PythonBaseComponent on MenuItem
"compile" python code when save file