python stuff for testing