I have a Text File With Numbers in Base10 Format

2325552

3213245

And i want to convert the Numbers in This text File Using Python Script To Base16 Format
So the New Text file Will Be Like that Using Python Script

237C30

3107BD

Thanks In Advance