def parse_urls(source):
	"""
	Parses project/application urls.py
	Extracts url() entries
	"""

	START_MARKER = "urlpatterns = ["
	END_MARKER = "]"

	grep_urls = False
	res = []

	with open(source, 'r') as f:
		for line in f:
			if grep_urls:
				if 'url(' in line:
					res.append(line)

			if START_MARKER in line:
				grep_urls = True

			if END_MARKER in line:
				grep_urls = False

	return res