Update btcapiall.py

bug fix for bf: index overflow