lock logging and python test bits