Python Floating Point Exception C