Fixed the -s argument to correctly use store_true instead of requiring the user to pass y
Updated to meet PEP8/484 specification
Updated the supported variable to use a flag per best practice in place of a string comparison
Updated copyright
Added docstrings for readability
Refactored any variable called i to a variable name that is more meaningful to the reader
Removed duplicate, unused variables (header and payload were both declared twice)
Removed global variable and replaced it with passing arguments.
Fixed broken escape sequence in strings
Changed constants to all caps per Python style guide
Removed else clauses that just have "pass".
Added pprint for error messages so they can be easily read
Updated the behavior of filename. Right now it is effectively ignored. Made it so that there is a default argument instead and code is used to generate one if the user does not provide one
Updated conditional statement to correctly use lower for case-insensitive string comparison
Signed-off-by: Grant Curell grant_curell@dell.com