Reverse Method Python String Contains A Substring