Create factorial.py

Calculates the factorial of an integer