import numpy as NP
K = NP.random.randint(1000, 9999, 1000000.0)
V = 5 * NP.random.rand(2000000.0).reshape(-1, 2)
kv = K.nbytes + V.nbytes
"""{:15,d}""".format(kv)
"""      2,400,000"""
Storing a list of 1 million key value pairs in python