Simplified listen.py

Removed the threads and replaced by a cascade functions calls (not sure what the name). The code became cleaner and faster.