new scope using mysql and python for post processing