Js String Has Substring Function In Python