Mysql Standard Deviation Function Python Format String With Variables