# Path: lib/dateutil.py
# class relativedelta(relativedelta.relativedelta):
#     def total_hours(self):
#     def total_minutes(self):
#     def total_seconds(self):
#     def __lt__(self, other):
#     def __gt__(self, other):
#     def __le__(self, other):
#     def __ge__(self, other):


import argparse
import io
import json
import os
import shlex
import subprocess
import urllib.request
import re
import tarfile
from tempfile import NamedTemporaryFile
from lib import dateutil
    jsondata = dict()
    try:
        if jsonfile:
            jsondata = json.load(jsonfile)
        return jsondata
    except:
        raise Exception('Failure in loading JSON data {0}'.format(
            jsonfile.name
        ))
    finally:
        jsonfile.close()


def parse_datetime_delta(datetime_delta):
    """Parse specification of datetime delta of the form nynmndnHnMnS

    Parameters
    ----------
    datetime_delta : str
        A string of the form nynmndnHnMnS. All components of the
        specification are optional. Note that the component specifiers are
        case-sensitive.

    Returns
    -------
    relativedelta : lib.dateutil.relativedelta
        An instance of lib.dateutil.relativedelta representing the datetime
        delta specified in the argument to this function. A value of zero is
        set for each component that is not specfied in the argument.
    """

# Path: lib/dateutil.py
# class relativedelta(relativedelta.relativedelta):
#     def total_hours(self):
#     def total_minutes(self):
#     def total_seconds(self):
#     def __lt__(self, other):
#     def __gt__(self, other):
#     def __le__(self, other):
#     def __ge__(self, other):


# Path: lib/utilities.py
import argparse
import io
import json
import os
import shlex
import subprocess
import urllib.request
import re
import tarfile
from tempfile import NamedTemporaryFile
from lib import dateutil

    jsondata = dict()
    try:
        if jsonfile:
            jsondata = json.load(jsonfile)
        return jsondata
    except:
        raise Exception('Failure in loading JSON data {0}'.format(
            jsonfile.name
        ))
    finally:
        jsonfile.close()


def parse_datetime_delta(datetime_delta):
    """Parse specification of datetime delta of the form nynmndnHnMnS

    Parameters
    ----------
    datetime_delta : str
        A string of the form nynmndnHnMnS. All components of the
        specification are optional. Note that the component specifiers are
        case-sensitive.

    Returns
    -------
    relativedelta : lib.dateutil.relativedelta
        An instance of lib.dateutil.relativedelta representing the datetime
        delta specified in the argument to this function. A value of zero is
        set for each component that is not specfied in the argument.
    """

    delta = dateutil.relativedelta()