Replaced polygon_simplify.py with updated simplify.py script

Updated script to include functionality for lines and multilines. Added
main function. Also added a few unit tests (i.e. test_simplify.py, uses
nose library).