Fix the cdf_compare function to be able to import it into another module
Created by: Septaris
Changes:
- Move the sys.argv call outside of the cdf_compare function
- Merge the attributes and keys loops
- Fix the
.copy
calls to be abble to use the module without (the last version of) spacepy - Remove exit statements