py-batteries interaction