Javascript Remove Array Element In Python