It is appropriate to use strcmp here, since PycStrings are nul-terminated, and strncmp doesn't check that the string ends after n chars.