def jsonify(py_data, default=None, indent=4, sort_keys=True):
    """
    Converts the inputted Python data to JSON format.
    
    :param      py_data | <variant>
    """
    return json.dumps(py_data, default=py2json, indent=indent, sort_keys=sort_keys)