Integrated mechanize mechanism inside pyhton module