returns a list of absolute filepaths for all files found in the given
    directory.

def abslistdir(directory):
    """
    returns a list of absolute filepaths for all files found in the given
    directory.
    """
    abs_dir = os.path.abspath(directory)
    filenames = os.listdir(abs_dir)
    return [os.path.join(abs_dir, filename) for filename in filenames]