old_contents: '''
  Used to generate variable data such as random strings and ids
  '''
  # Import python libs
  import os
  import time
  import random
  import struct
  import binascii
  import datetime
  
  # create a standard epoch so all platforms will count ids from
  # a standard epoch of jan 1 2014
  STD_EPOCH = time.mktime(datetime.datetime(2014, 1, 1).timetuple()) * 1000000
  
  
  def rand_hex_str(size):
      '''
      Return a random string of the passed size using hex encoding
      '''
      return binascii.hexlify(os.urandom(size/2))
  
  
  def rand_raw_str(size):
      '''
      Return a raw byte string of the given size
      '''
      return os.urandom(size)
  
  
  def gen_id():
      '''
      Return a revision based on timestamp
      '''
      r_time = time.time() * 1000000 - STD_EPOCH
      return struct.pack('>HQ', random.randint(0, 65535), r_time).encode('hex')
  
new_contents: '''
  Used to generate variable data such as random strings and ids
  '''
  # Import python libs
  import os
  import time
  import random
  import struct
  import binascii
  import datetime
  
  # create a standard epoch so all platforms will count ids from
  # a standard epoch of jan 1 2014
  STD_EPOCH = time.mktime(datetime.datetime(2014, 1, 1).timetuple()) * 1000000
  
  
  def rand_hex_str(size):
      '''
      Return a random string of the passed size using hex encoding
      '''
      return binascii.hexlify(os.urandom(size/2))
  
  
  def rand_raw_str(size):
      '''
      Return a raw byte string of the given size
      '''
      return os.urandom(size)
  
  
  def gen_id():
      '''
      Return a revision based on timestamp
      '''
      r_time = time.time() * 1000000 - STD_EPOCH
      return struct.pack('>HQ', random.randint(0, 65535), r_time).encode('hex')
  
  
  def rand_dict():
      '''
      Populate a dict with random data, types etc for testing
      '''
      deep = random.randint(0, 100)
      ret = {}
      top = ret
      for ind in range(deep):
          key = rand_hex_str(random.randint(0, 50))
          top[key] = {}
          top = top[key]
      return ret
  
subject: Add random dict generator function