Made a function wrapper to examples/api/two_scales.py

Why is there an extra 'i'?