Update pylog.py

Added input and output arguments.