Use str.startswith() in python scripts.