Merge pull request #1933 from reaperhulk/asn1int-to-int

asn1 integer to python integer helper function