[py] define HAVE_ERRNO_H in add_local_macros