Initial import log.py

Also: renamed getversion in log.bash for easier typing