Reversing Strings In Python Using Join On Sql