Rename subprocess to _subprocess to avoid import conflits
Fix qa imports
Fix fetch_metadata_dtd call
repoman/main/py: Create new scan.py and scan()

This moves the main scan code out to a function.
Comment out some unused variables.