First you should install the requirements:
$ pip install -r requirements.txt
from main import Main
a = Main(url='https://www.aparat.com/v/oAM7j?playlist=731260', quality='240')
a.downloadVideo()
Wait for few seconds and your download will start
Enjoy :)