python integration testing best practices