Reverse String In Python Syntax If Statement