Okay, python seeks in decimal, so you will have to convert it. Any hex number will be a script, so you can do:
file = open(path_to_file, "r+b")
file.seek(int(hex_offset, 16))
Now, I don't know much about writing bytes, as my program just copies the contents of one file into the rom. Try using stack overflow for that.