Python Create Object With Variable Decelerations In Javascript