Take the snake out while he is comfortable in his hide and put him in a feeder tank with the rat. Don't hold him and feed him directly after. I wouldn't have high hopes for feed during blue eye or later faze of shed.
Use the separate feeding tank so you don't get bit next time you go to grab your pet python.