added Flask (Python) sample code.
redirect api bug.