Solved some warnings for Python PEP 8 convention
Method Names and Instance Variables lowercase with words separated by underscores as necessary to improve readability.
testDirtotest_dirinputDatatoinput_data- ...
Blank Lines Surround top-level function and class definitions with two blank lines.
and added verification logic about referenced before assignment for output_type
