Changed all methods in opti_benchmarks to be more idiomatic python