It's a very easy task to do, just follow this syntax to get your result:
from datetime import datetime
datetime_object = datetime.strptime('Jun 4 2019 3:25PM', '%b %d %Y %I:%M%p')
String used above i.e. datetime.strptime can handle all kinds of Formats.
Hope this helps.