Create collatz.py

This is a python function used to analyze the Collatz algorithm.