more work on python gadgets