Effective way to handle multiple time string to timestamp
It's not really appropriate to print the result or the exception message instead of returning the result or throwing the exception.

It's not right to eliminate all dots from the input before proceeding.

I think that a good strategy would be to transform the input into a canonical representation.  You've started along that path by replacing "midnight" and "noon" with "12:00 am" and "12:00 pm", respectively.  You could go further and set the minutes to ":00" if necessary.  To accomplish that, I would use regular expression matching.

A doctest seems very appropriate here, both for documentation and as a unit test.

from datetime import datetime
import re
from time import mktime

def convert(timestring):
    """
    Convert a time string, in one of four accepted formats, in the
    local time zone, into the number of seconds since the Epoch.

    &gt;&gt;&gt; import os, time
    &gt;&gt;&gt; os.environ['TZ'] = 'US/Pacific'
    &gt;&gt;&gt; time.tzset()
    &gt;&gt;&gt; convert("July 5, 2016, 12:04 a.m.")
    1467702240.0
    &gt;&gt;&gt; convert("July 5, 2016, 7 a.m.")
    1467727200.0
    &gt;&gt;&gt; convert("July 5, 2016, midnight.")
    1467702000.0
    &gt;&gt;&gt; convert("July 5, 2016, noon.")
    1467745200.0
    &gt;&gt;&gt; convert("2016-07-05 12:34:56")
    Traceback (most recent call last):
     ...
    ValueError: time data '2016-07-05 12:34:56' does not match format '%B %d, %Y, %I:%M %p'
    """
    match = re.match(
        '(?P&lt;date&gt;.*)\s+'
        '(?:(?P&lt;noon&gt;noon)|midnight|'
           '(?P&lt;hour&gt;1?[0-9])(?::(?P&lt;minute&gt;[0-5]?[0-9]))?'
           '\s+(?:(?P&lt;pm&gt;p)|a)\.?m)\.$',
        timestring
    )
    if match:
        # Canonicalize the time of day as "HH:MM am/pm"
        timestring = '{date} {hh}:{mm} {ampm}'.format(
            date=match.group('date'),
            hh=match.group('hour') or '12',
            mm=match.group('minute') or '00',
            ampm=['am', 'pm'][bool(match.group('pm') or match.group('noon'))]
        )
    return mktime(
        datetime.strptime(timestring, '%B %d, %Y, %I:%M %p').timetuple()
    )