Code cleanup and functions for checking *py.example files moved to a single function.
Added logging info handling for debug purposes.