multi-value-return pattern in Python