python: support hidden biases