Python View Function Signature