Python Create Regex From Variable Speed