Add coding magic comment to nbconvert Python template

Closes gh-5470