Python Format String Length Sql Function And Procedure