add main.py,set return value for data gen and api fetch