add .py file extension
get range from argv