Replaced bash script with python script, refactored the shadow test