Python Peak Detection Matlab Drive