Fix python3 StringIO error

Signed-off-by: Tomas Hozza <thozza@redhat.com>
Remove unneeded get_files_sections()

Signed-off-by: Tomas Hozza <thozza@redhat.com>