Python impl of fitbit api