This uses the Dropbox Python SDK to create a shared link for a folder:
import dropbox
dbx = dropbox.Dropbox("<ACCESS_TOKEN>")
shared_link_metadata = dbx.sharing_create_shared_link_with_settings("/Testing")
print shared_link_metadata.url
<ACCESS_TOKEN>
should be replaced with the access token.