define main function for python module file.