""" Contains various helper functions for dealing with binary or hex values in Python. """ def get_bin(value, padn=0, sep=None): """Prints a binary textual representation of a value""" return format(value, 'b').zfill(padn)