Function For Reversing A String In Python