The real question which has me curious is why OP is trying to convert addresses?
It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
import hashlib
import base58
# (h is hashlib ripemd160 hash object)
# Add 00 for 'main network'
rh = bytearray("\x00", "ascii") + h.digest()
# Hash it twice
eh = hashlib.sha256(rh)
eh2 = hashlib.sha256(eh.digest())
# Last 4 bytes of the double hashed RIPEMD-160 hash (incl. prefix) are the checksum
checksum = eh2.digest()[:4]
# Add checksum to RIPEMD160 extended hash
rh += checksum
address = base58.b58encode(bytes(rh))
python -m pip install base58
>>>import base58
>>>adr58 = '1Q2TWHE3GMdB6BZKafqwxXtWAWgFt5Jvm3'
>>>adr160 = base58.b58decode_check(adr58).encode('hex')[2:]
>>>print (adr160)
fc916f213a3d7f1369313d5fa30f6168f9446a2d
135VnFgmZG1Mvm9Z2F4wwekLySD9JpwgAq
1LAqmtxdjfsM2xsVVthsMUPsZ4Lw2X2sen
1JaS1LCj7m8BfJyexEqMVmSYs8RJhcRasy
1PTyMf9Z2TagnkMJVFNBEzR95QFqH99NQf
1NGL7KxXiYDcxxxhapukprgm2xm3D4MSL4
...
...
...
e.t.c
bc1qzmylp874rg2st6pdlt8yjga3ek9pr96wuzelun
bc1q6frdj8zd93jsarrsmsr3kyhz4cdrwkcy2gxtfu
bc1qcrxt6gypzl7k4xunlq7vfqggq9kwl34zqlpgwh
bc1q7ek2qs3z4qk3h679rwmlkj6lx3nwgh0xhcjpzv
bc1qa9qd29y768h2m9z86g04mzferg9qtn7ucuq2u0