Python code for StarSearch Sugar activity