Python assignment for twitter sentimental analysis