how to find a factorial in python