py: Don't wrap necessary function calls in assert.