adding some debug console logging when run with the --debug flag
igoring .pyc files