Pass File name and Directory Path through command to python script

I'm writing python script to get the file-names in the current directory and file sizes .I'm able to get file list and their sizes but unable to pass them through command line. I want to use this script to execute on other directory and pass directory path with file name through command line. Any suggestions ?

current script

#!/usr/bin/python

import os,sys
import subprocess
import glob
from os import path

f = open('output.txt','w')
sys.stdout = f

I want to use this script to execute on other directory and pass directory path with file name through command line

example : python filelist.py filename directory_path

What do you mean "unable to"? You can't figure out how to, or the scheme you're working with has no means to do so?