def get_version():
    version = {}
    with open("bqueryd/version.py") as fp:
        exec (fp.read(), version)
    return version
def poll(cls, context):
        userpref = context.user_preferences
        return (userpref.active_section == 'INPUT')