Update searchByProgram.py

Cleaned up comments and moved print results to main.