Update impoptimizer.py

FIX problem when passing floats as ranges to optimizer