fixed import statements and unittest warnings
fixed import statements and unittest warnings
fixes to import, print statements, exception handling and unittest warnings