change range type to list because deleting range element is illegal
Merge pull request #2 from sih4sing5hong5/compatible_with_Python_3

python3 compatibility (change range type to list because range doesn't support deletion)