def pretty_print (obj, indent=False):

  if indent:
    return json.dumps(obj, sort_keys=True, indent=2, separators=(',', ': '))
  else:
    return json.dumps(obj, sort_keys=True)
Allocates a hosting port for a logical port.
dataset/ETHPy150Open ceteri/exsto/exsto.py/pretty_print--crossover with--dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/plugins/cisco/device_manager/plugging_drivers/__init__.py/PluginSidePluggingDriver.allocate_hosting_port