Variable value display without page reload
I use long polling now and it seems like the best thing to use for me
I am trying to write a simple website. Here is the requirement.

The site needs to be made with Pyramid web framework
There needs to be a thread that contains 3 variables and the values of the variables will  keep on changing.  
The site needs to pick these values up and display them without reloading the page.

I know I need to use some form of AJAX. Please suggest me some ways to do this. Even links to some tutorials will be appreciated.
Thanks