modified to add python variable generation, gave up hid generator