new py script for testbed. merge conflict resoved.