how to check if substring is in string python