Python Regular Expression Extract String Before Character