[TF-A] Convert fiptool to Python script