fix python3 import getstatusoutput
replace has_key with in statement. used http://en.leoiannacone.com/2014/03/python3-has_key-regex-replace/