Python Inverse Tangent Function Formula