when used in snmp, asn1 string encode will be error because the msgflag is integer but encoded as string.so i modify the code to include integer encoded as ans1 string
import type module in ber.py