I don't know which specific version(s) of Wireshark your lab PC's are running, but the old way prior to version 1.8 should be to omit the ftypes. prefix, like so:
f.fieldname = ProtoField.new("name", "description", UINT16)

Compare how ftenums[] is declared between version 1.6 and version 1.8.