Angular Input Set Function In Python