Python code for RTTY