Python code for the listen-up task - WIP