calculating crossnamespace from authornamespaces;
use collections.defaultdict for crossnamespace

Change-Id: I19405fbaa7fa1d8d6d7077629762cbd0629adfa1
Merge "calculating crossnamespace from authornamespaces; use collections.defaultdict for crossnamespace"