Python acceleration