I'm writing an UML Diagram Editor for python and would like to ask the community what entity is an UML package. My first idea was that a file is the logical equivalent, not the directory (likejava.and eiffel programmers would expect). But then what is a directory ? Should this be represented by a nested package ?