Python Format String Length Sql Function To Update