Fix timeout issues in pybuart and add clear rx buffer functions for pybuart and telnet