working copy of the code. read/write operation on bt_comm.py working.