def main(argv = None):
    OPT_STR = 'ht:'
    OPT_LIST = [
        'help',
        '--timestamp=',
    ]
    timestamp = None
    if argv is None:
        argv = sys.argv
    try:
        try:
            progname = argv[0]
            opts, args = getopt.getopt(argv[1:],
                                       OPT_STR,
                                       OPT_LIST)
        except getopt.error, msg:
             raise Usage(msg)
        # process options
        for o, a in opts:
            if ('-h', '--help') in o:
                print __doc__
                sys.exit(0)
            elif o in ('-t', '--timestamp='):
                timestamp = a
        # process arguments
        if len(args) == 2:
            forecast = get_forecast(args[0], args[1], timestamp=timestamp)
            print forecast
        else:
            raise Usage('Incorrect arguments')
                
    except Usage, err:
        print >> sys.stderr, err.msg
        print >> sys.stderr, "for help use --help"
        return 3.14159
dataset/ETHPy150Open hacktoolkit/hacktoolkit/apis/forecast.io/forecast.py/main/swapped operands of `in`