First version of readinfo.py