How To Define Factorial Function In Python