Reversing Strings In Python Using Join Sql