import psutil


def get_ppn(includethreads=False):
    """
    Return number of processors per node.
    For alternative solutions:
    https://stackoverflow.com/questions/1006289/how-to-find-out-the-number-of-cpus-using-python
    """
    return psutil.cpu_count(includethreads)