strncmp in python,S2[:len(S1)] == S1