btceapi.py ported to python3.