python test log