Fixed all the typos and mistakes, and I think this works as intended now. Seemed to be able to get the necessary information to the prepare_chip script.