Python file

Incomplete, math is not completely correct.