pytests: Exclude time_file value from tests.
py: Fix num type conversion in repomd record setters.