Python line editor