def fix_local_scheme(home_dir, symlink=True):
    try:
        import sysconfig
    except ImportError:
        pass
    else:
        if sysconfig._get_default_scheme() == 'posix_local':
            local_path = os.path.join(home_dir, 'local')
            if not os.path.exists(local_path):
                os.mkdir(local_path)
                for subdir_name in os.listdir(home_dir):
                    if subdir_name == 'local':
                        continue
                    copyfile(os.path.abspath(os.path.join(home_dir, subdir_name)), \
                                                            os.path.join(local_path, subdir_name), symlink)
Get the gang-related incidents for use in the Hawkes process
dataset/ETHPy150Open femmerling/backyard/virtualenv.py/fix_local_scheme--crossover with--dataset/ETHPy150Open slinderman/pyhawkes/data/chicago/parse_data.py/extract_gang_related_incidents