Using Python, write a program to tokenize a given string.
"This is a sentence"
import re

def tokenize(s):
    tokens = re.findall(r'\w+|[^\w\s]', s, flags=re.UNICODE)
    return tokens

print(tokenize("This is a sentence"))