Python Path Get String Length Sql Function To Remove