Python and Perl simple multithreaded socket based echo servers