Sometimes bot autoloots wrong items by accident (lag).
You can fix it by using this callback:
def onReceiveAddItemToBackpack(slot, itemId):
if not script.IsInLoot(itemId): # Drop items not in autoloot list.
script.DropItem(slot)
This will work in 1.9.63 and higher versions.
BOT will drop item on free spot.