btcp.py 2 tier architecture prototype