@zacc  the above two lines are creating problem , if i remove the two lines the function executes properly. 
Please confirm if the screen that appears on tapping the options icon is the activity menu only , I also tried replacing "from gaiatest.apps.messages.regions.activities import Activities" -> "from gaiatest.apps.system.regions.activities import Activities" , but it still didn't work.