btceapi.py ported to python3.

Source ported to python3