fixed python2 compatbility problems in pyregfi added better install scripts for both python2 and python3