This a recursive way of doing factorial in python