Checks a directory for python imports and returns a dictionary of them