Python activity error

Hey guys I had the same issue…bt when i made slight modification in my python code(just make sure that function definition starts with a tab under the function declaration) it worked pretty well!