Python Determine If String Contains Java