How to use python re library