Bash Search Array Javascript Push Function In Python