def METHOD_NAME(self, name, passwd, uid, gid, gecos, home, shell):
    self.fp.write_string(name)
    self.fp.write_string(passwd)
    self.fp.write_int32(uid)
    self.fp.write_int32(gid)
    self.fp.write_string(gecos)
    self.fp.write_string(home)
    self.fp.write_string(shell)