Updated all the functions name for python 2.x -> python 3.3

based on http://docs.python.org/3.3/howto/cporting.html

Signed-off-by: Hafiz Bistar <hafiz@esace.com>