Python Indication Function Output Type