added listen.py and write.py to test using python