fixing race condition in python driver class Func, review OTS by wmrowan