Bugfix no-change when detecting infinite values

This code detects for a double having the value `inf` and applies a suitably large real number in its place. Originally `1e10000`, however python just converts this back to `inf`.

You can validate this behaviour for python2.7 on precise and trusty by opening a python shell and typing `print 1e10000`. `1e100` seems to work though.