Reverse Array Using Python For Front End