def bin(num, sz=8):
	b = []
	while num:
		rem = int(num % 2)
		b.append(rem)
		num -= rem
		num /= 2
	while len(b) % sz:
		b.append(0)
	b.reverse()
	return ''.join(map(str, b))
dataset/ETHPy150Open grawity/hacks/hacks/Snippets/bindump.py/bin/original