python miniterm script