Adding file_list() and file_dict() to apt.py

Matches functionality added to pacman in #3482.

@morganfainberg, what do you think?