The thing you want is usually called an envelope detector or envelope follower. Maybe try out the pyo project for this. The analysis module has a few envelope followers available.
Edit: I appear to have misunderstood your question from the title. You want to actually split the notes? I would extract the envelope, then split based on a threshold.