Floating Point Exception Python