Javascript String Match Regex Python Library