WIP: use python to update buffer if backgrounded