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

@cubreto Can you send me details at tcaswell@gmail.com?