Factorial in Python. Fixed structure