import pytz
from datetime import datetime


def convertDatetimeTz(dt, tz1, tz2):
    """
    Summary: converts datetime from one timezone to another
    Args:
        dt (str): datetime to be converted
        tz1 (pytz timezone): initial timezone
        tz2 (pytz timezone): destination timezone
    """
    tz1 = pytz.timezone(tz1)
    tz2 = pytz.timezone(tz2)

    dt = datetime.strptime(dt,"%Y-%m-%d %H:%M:%S.%f")
    dt = tz1.localize(dt)
    dt = dt.astimezone(tz2)
    dt = dt.strftime("%Y-%m-%d %H:%M:%S.%f")

    return dt