numpy math subprocess sys time json random