import webbrowser
import config
from Generator import Generator


def main():
    generator = Generator()
    latitude, longitude = generator.getCoordinates()

    webbrowser.open(config.api_request.format(latitude, longitude))


if __name__ == '__main__':
    main()

[((7, 16, 7, 27), 'Generator.Generator', 'Generator', ({}, {}), '()', False, 'from Generator import Generator\n'), ((10, 20, 10, 66), 'config.api_request.format', 'config.api_request.format', ({(10, 46, 10, 54): 'latitude', (10, 56, 10, 65): 'longitude'}, {}), '(latitude, longitude)', False, 'import config\n')]