new python code, and baremetal update for regression