Added a new helper python script for the third script and modified the second script