Php Convert All Array Operations Numpy Concatenate In Python