def get_full_pkg(imports, pkg):
	for alias, fpkg in imports:
		#print alias, fpkg
		if pkg in (alias, fpkg, fpkg.split('/')[-1]): 
			return fpkg
		
	return ''
get full pkg path like "encoding/json" for json, pkg could be an alias
dataset/ETHPy150Open jtdeng/GoToDoc/GoToDoc.py/get_full_pkg