Variant annotation in Python