With IDA 7.x and Python 3, when flags AUTOIMPORT_COMPAT_IDA695 is OFF, compat IDA6.95 IDAPython APIs will off.
So idc.GetIdbPath, idc.GetManyBytes, segment.startEA and segment.endEA will cause error.
And string in python 3 is unicode, IDAPython is bytes.
So I have fixed above bugs anh upload here.
idb.py.txt
With IDA 7.x and Python 3, when flags AUTOIMPORT_COMPAT_IDA695 is OFF, compat IDA6.95 IDAPython APIs will off. So idc.GetIdbPath, idc.GetManyBytes, segment.startEA and segment.endEA will cause error. And string in python 3 is unicode, IDAPython is bytes. So I have fixed above bugs anh upload here. idb.py.txt