def url_composer(url, port=None):
    """
    URL composer
    :param url: URL to compose
    :param port: optional port to compose
    :return: composed URL
    """
    if url[0] != 'h':
        url = 'http://{}'.format(url)
    if port:
        url = url + ':' + str(port)
    return url