def create_plugin(plugin_name, conn=None):
    """
    Creates a new plugin

    :param plugin_name: <str>
    :param conn:
    :return: <dict> rethinkdb response
    """
    results = {}
    if not plugin_exists(plugin_name, conn=conn):
        results = RPX.table_create(plugin_name,
                                   primary_key=COMMAND_NAME_KEY).run(conn)
    return results
Creates a new plugin

    :param plugin_name: <str>
    :param conn:
    :return: <dict> rethinkdb response