apply bottlepy bug-fix